﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <ClientWebPart
    Name="TranslatorAppPart"
    Title="AG Translate"
    Description="Translate it"
    DefaultWidth="300"
    DefaultHeight="200">

    <!-- Content element identifies the location of the page that will render inside the client web part
         Properties are referenced on the query string using the pattern _propertyName_
         Example: Src="~appWebUrl/Pages/ClientWebPart1.aspx?Property1=_property1_" -->
    <Content Type="html" Src="~remoteAppUrl/Pages/TranslatorAppPart.aspx?{StandardTokens}&amp;DefaultToLanguage=_DefaultToLanguage_" />

    <!-- Define properties in the Properties element.
         Remember to put Property Name on the Src attribute of the Content element above. -->
    <Properties>
      <Property 
        Name="DefaultToLanguage" Type="enum" 
        WebBrowsable="true" WebDisplayName="Default translation language" 
        WebDescription="Translate to this language by default" WebCategory="Translator" 
        DefaultValue="en" RequiresDesignerPermission="true">
        <EnumItems>
          <EnumItem Value="es" WebDisplayName="Spanish"/>
          <EnumItem Value="en" WebDisplayName="English"/>
          <EnumItem Value="nl" WebDisplayName="Duth"/>
        </EnumItems>
      </Property>
    </Properties>
  </ClientWebPart>
</Elements>
